package com.edu.study.base.country.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 国家对象 tb_country
 * 
 * @author zw
 * @date 2021-04-14
 */
public class Country extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 国家编码 */
    @Excel(name = "国家编码")
    private String countryCode;

    /** 国家中文名称 */
    @Excel(name = "国家中文名称")
    private String countryName;

    /** 国家英文名称 */
    @Excel(name = "国家英文名称")
    private String countryEnName;

    private String countryParent;

    private String countryLevel;
    /** 国家描述 */
    @Excel(name = "国家描述")
    private String countryDesc;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 生效标识:0  失效   1生效 */
    @Excel(name = "生效标识:0  失效   1生效")
    private String validateFlag;

    /** 删除标记:0正常    1删除 */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCountryCode(String countryCode) 
    {
        this.countryCode = countryCode;
    }

    public String getCountryCode() 
    {
        return countryCode;
    }
    public void setCountryName(String countryName) 
    {
        this.countryName = countryName;
    }

    public String getCountryName() 
    {
        return countryName;
    }
    public void setCountryEnName(String countryEnName) 
    {
        this.countryEnName = countryEnName;
    }

    public String getCountryEnName() 
    {
        return countryEnName;
    }
    public void setCountryDesc(String countryDesc) 
    {
        this.countryDesc = countryDesc;
    }

    public String getCountryParent() {
        return countryParent;
    }

    public void setCountryParent(String countryParent) {
        this.countryParent = countryParent;
    }

    public String getCountryLevel() {
        return countryLevel;
    }

    public void setCountryLevel(String countryLevel) {
        this.countryLevel = countryLevel;
    }

    public String getCountryDesc()
    {
        return countryDesc;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setValidateFlag(String validateFlag) 
    {
        this.validateFlag = validateFlag;
    }

    public String getValidateFlag() 
    {
        return validateFlag;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return "Country{" +
                "id='" + id + '\'' +
                ", countryCode='" + countryCode + '\'' +
                ", countryName='" + countryName + '\'' +
                ", countryEnName='" + countryEnName + '\'' +
                ", countryParent='" + countryParent + '\'' +
                ", countryLevel='" + countryLevel + '\'' +
                ", countryDesc='" + countryDesc + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", validateFlag='" + validateFlag + '\'' +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
